from vnpy.trader.ui import create_qapp
from vnpy.app.pd_stra import PdStraApp
from vnpy.app.pd_stra.backtester import PdStraBtrApp
from vnpy.app.pd_stra.ui.widget import PdStraManager
from vnpy.trader.engine import MainEngine, EventEngine

# from pyqtgraph import examples
# examples.run()

if __name__ == '__main__':
    qapp = create_qapp('策略监控')
    ee = EventEngine()
    me = MainEngine(event_engine=ee)
    me.add_app(PdStraApp)
    me.add_app(PdStraBtrApp)
    window = PdStraManager(me, ee)
    window.show()
    qapp.exec()
